import axios from 'axios'

//统计pv
export function computePV(data){
  const url = baseURL + 's=Statistics/computePV'
  return axios.post(url, data, {
    headers: {'Content-Type': 'application/x-www-form-urlencoded'}
  }).then(res => {
    return res.data;
  })
}

//图片分享预览统计
export function recordPictureShare(data){
  const url = baseURL +'s=/Statistics/recordPictureShare'
  return axios.post(url,data,{
    headers: {'Content-Type': 'application/x-www-form-urlencoded'}
  }).then(res=>{
    return res.data;
  })
}
